# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   健康知识云

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.health_knowledge_cloud_page import HealthKnowledgeCloudPage


class HealthKnowledgeCloudCase(UIParent):

    @classmethod
    def test_health_knowledge_cloud_check(cls):
        '''健康知识云校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("健康知识云")
        authorizePage.ifAuthorize()

        status = HealthKnowledgeCloudPage.health_knowledge_cloud_index()
        asserts.true(status, "健康知识云校验")
